import { uIsFindImgs } from './index'

// * array: 要找的图片数组   t：精度
export default function (imgs_url = [], t, region, img) {
  let point = null;

  // ! 找到为止
  while (true) {
    point = uIsFindImgs(imgs_url, t, region, img)

    if (point) break
  }
  sleep(500)
  click(point.x, point.y)

  return point
}
